import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/lowcode/groovy',
    component: () => import('#/views/lowcode/groovy/index.vue'),
    name: 'LowcodeGroovyScript',
    meta: {
      title: '在线脚本管理',
      hideInMenu: true,
    },
  },
  {
    path: '/lowcode/groovy/editor',
    component: () => import('#/views/lowcode/groovy/editor/index.vue'),
    name: 'LowcodeGroovyEditor',
    meta: {
      title: '脚本编辑器',
      hideInMenu: true,
    },
  },
  {
    path: '/lowcode/datasource',
    component: () => import('#/views/lowcode/datasource/index.vue'),
    name: 'LowcodeDatasource',
    meta: {
      title: '数据源管理',
      hideInMenu: true,
    },
  },
  {
    path: '/lowcode/magic-api',
    component: () => import('#/views/lowcode/magic-api/index.vue'),
    name: 'LowcodeMagicApi',
    meta: {
      title: '在线接口管理',
      hideInMenu: true,
    },
  },
];

export default routes;
